home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / answrbok / 3_4.lha / 3_4 / 3_4p.c < prev    next >
Text File  |  1993-08-08  |  637b  |  17 lines

  1. * Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
  2. * The C++ Answer Book */
  3. * Tony Hansen */
  4. * All rights reserved. */
  5. include <stream.h>                    /* DELETE */
  6. nt x[3] = { 2, 1, 0 }; int i = 0;                /* DELETE */
  7. ain() {                        /* DELETE */
  8. define swap1(a,b) { int t = (a); (a) = (b); (b) = t; }
  9. define swap2(a,b) { int t = (b); (b) = (a); (a) = t; }
  10.  
  11. wap1(x[i], i);
  12. rintf("i=%d, x[0]=%d, x[1]=%d, x[2]=%d\n", i, x[0], x[1], x[2]);    /* DELETE */
  13. [0]=0; x[1]=1; i=0;                    /* DELETE */
  14. include "3_4r.c"                    /* DELETE */
  15. rintf("i=%d, x[0]=%d, x[1]=%d, x[2]=%d\n", i, x[0], x[1], x[2]);    /* DELETE */
  16. return 0; }                    /* DELETE */
  17.